package com.flycun;

import java.util.Date;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {

	@RequestMapping("/user/{id}")
	public Customer getCustomer(@PathVariable("id") int id) {
		
		Customer customer=new Customer(id, "flycun", "flycun@163.com", new Date());
		System.out.println("userserver:"+customer);
		return customer;
	}

}